package org.wangzs.blog.dao;

import javax.annotation.Resource;

import org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate;

public abstract class BaseDAO {
	private NamedParameterJdbcTemplate named;

	@Resource(name="namedJdbc")
	public void setNamed(NamedParameterJdbcTemplate named) {
		this.named = named;
	}
	
	public NamedParameterJdbcTemplate getNamed() {
		return named;
	}
	
	public abstract int getTotalNum();
}
